import { agencyHttp as http } from '@/services/http';
import type { Limit } from '@/types/api/common';
import type { ColonelListParamsDTO, ColonelUserListParamsDTO, ColonelAdjustParamsDTO,
  ColonelLogListParamsDTO, ColonelUserRemarkParamsDTO } from '@/types/api/crm-agency/colonel';
// 代理列表
export const getColonelList = (payload: { data: ColonelListParamsDTO; params: Limit }) =>
  http<any>({
    method: 'post',
    url: '/api/colonel/list',
    ...payload
  });
// 新老用户列表
export const getColonelUserlist = (payload: { data: ColonelUserListParamsDTO; params: Limit }) =>
  http<any>({
    method: 'post',
    url: '/api/colonel/userlist',
    ...payload
  });
// 调整保证金
export const colonelAdjust = (data: ColonelAdjustParamsDTO) =>
  http({
    method: 'post',
    url: '/api/colonel/adjust',
    data
  });
  // 操作记录
export const getColonelLogList = (payload: { data: ColonelLogListParamsDTO; params: Limit }) =>
  http({
    method: 'get',
    url: '/api/colonel/log/list',
    params: {
      ...payload.data,
      ...payload.params
    }
  });
// 客户列表-备注修改
export const colonelRemark = (data:ColonelUserRemarkParamsDTO) =>
  http({
    method: 'post',
    url: '/api/colonel/remark',
    data
  });

